nativeRequestPermission

Requests microphone access on Windows.

NOTE: Unlike macOS, there is no API for a desktop application to programmatically trigger the system microphone permission prompt on Windows. This function, therefore, does not show a prompt. It simply checks the current permission status, behaving identically to nativeCheckPermission.

If permission is denied, the application should guide the user to the system's privacy settings, for which nativeRequestRedirectToSettings can be used.

Return

The current permission status: 1 (Denied) or 2 (Granted).